gtk/: Fix build without PangoFT2 and HarfBuzz
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 20 Jun 2018 10:13:44 +0000 (18:13 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 26 Jun 2018 08:40:18 +0000 (16:40 +0800)
commiteebf151f2a0277c12210c0cf73ecc1963cee847d
tree5bb2e01dc0bed48390c4a039adde3a787e5d18b8
parente8d38994611df4b44c7418279833a8f5ab0d1daa
gtk/: Fix build without PangoFT2 and HarfBuzz

On Windows HarfBuzz and PangoFT2 are optional, so we need to ensure that
we only build the bits that require HarfBuzz and PangoFT2 when needed.
We may need to see later whether we can get the needed functionality in
gtkfontchooserwidget.c with the Windows APIs without the need of
HarfBuzz nor PangoFT2 (and starting programs on Windows using FontConfig
is very slow).
gtk/gtkfontchooserwidget.c
gtk/language-names.c
gtk/script-names.c